package cn.com.nes.site.entity.vo.inventory;

import cn.com.nes.site.entity.vo.BaseVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 保存入库申请单
 */
@Data
public class SaveApplyInfoInVO extends BaseVO {

    @ApiModelProperty(name = "申请单id")
    private String applyId;

    @ApiModelProperty(name = "采购订单id")
    private String purchaseId;

    @ApiModelProperty(name = "申请类型")
    @NotEmpty(message = "申请类型不能为空")
    private String orderType;

    @ApiModelProperty(name = "订单状态")
    private String orderState;

    @ApiModelProperty(name = "申请时间")
    @NotNull(message = "申请时间不能为空")
    private Date applyTime;


    @ApiModelProperty(name = "供货方Id")
    private String customerID;

    @ApiModelProperty(name = "联系人")
    private String cusname;

    @ApiModelProperty(name = "联系电话")
    private String phone;

    @ApiModelProperty(name = "供货方地址")
    private String address;

    @ApiModelProperty(name = "商品明细")
    private List<SaveApplyInfoGoodsVO> goodslist;
}
